<?php
class Admin_Operador extends Controller
{
    public $esAdmin_Operador = false;

    public function Admin_Operador() {

        // treated as constructor in PHP 5.3.0-5.3.2
        // treated as regular method as of PHP 5.3.3
        parent::__construct();

        //$datosSession = $this->session->all_userdata();
        //print_r($datosSession,false);
       // $this->esAdmin_Operador = $datosSession['es_administrador'] || $datosSession['es_operador'];

    }

    function index()
    {
        //$datosSession = $this->session->all_userdata();
      //  print_r($datosSession,false);
    }

    function puede_acceder()
    {

//        if ($this->esAdmin_Operador == false )
//        {
//            //loading principal view
//            $data['main_content'] = 'principalM';
//            $this->load->view('includes/template', $data);
//        }
//        return $this->esAdmin_Operador;
        return true;
    }
}